﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TB_WS.Class
{
    public class Booking_HB
    {
        public static int get_Seller_Nick_Count(string Seller_Nick)
        {
            string sql = "select count(*) from Booking_HB where Seller_Nick='" + Seller_Nick + "'";
            return Convert.ToInt32(Unit.db_Conn.scalar(sql));
        }

        public static int Insert_Booking(string Tid, string Seller_Nick, int Money)
        {
            string sql = "insert into Booking_HB values('" + Tid +
                 "','" + Seller_Nick + "'," + Money +
                 ",'" + LeShiTao_Library.Tools.Data_Handle.GET_UNIX_TIMESTAMP() + "')";
            return Unit.db_Conn.Nonquery(sql);
        }
    }
}